
//
//  OCSqlViewController.m
//  数据库OC
//
//  Created by YYY on 2018/1/6.
//  Copyright © 2018年 YYY. All rights reserved.
//

#import "OCSqlViewController.h"

#import "SQLiteManager.h"

@interface OCSqlViewController ()

@end

@implementation OCSqlViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //打开数据库
    [[SQLiteManager sharedInstance] openSQLite];
    
    //插入数据
    [[SQLiteManager sharedInstance] insert];
    
    //查询数据
    [[SQLiteManager sharedInstance] query];
    
    //删除表
    [[SQLiteManager sharedInstance] delete];
    
    //查询数据
    [[SQLiteManager sharedInstance] query];
}


@end
